<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			function clickMe() {
				// 得到input标签对象
				var input = document.getElementById("inputId");	
				console.log(input.id);//inputId
				console.log(input.type);//text
				console.log(input.value);//Hello
				alert(input.value);
			}
		</script>
	</head>
	<body>
		<input id="inputId" type="text" value="Hello"/> <br/>
		<button onclick="clickMe()">点我</button>
	</body>
</html>
